package ast;

import out.Out;
import mem.interfaces.IMem;
import environnement.interfaces.IEnv;
import ast.interfaces.IASTnum;

public class ASTnum implements IASTnum{
	private Integer num;

	public ASTnum(Integer num) {
		this.num = num;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	@Override
	public Float eval(Out o, IEnv e, IMem m) {
		return (float) num;
	}

	@Override
	public String toTreeString(String ident,IEnv env,IMem mem) {
		return num.toString();
	}
	
}
